package com.blog.dto.cond;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 文章查询条件
 *
 * @author wmb
 *
 * @since 2021-2-8
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class ContentCondition implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 标签
     */
    private String tag;
    /**
     * 类别
     */
    private String category;
    /**
     * 状态
     */
    private String status;
    /**
     * 标题
     */
    private String title;
    /**
     * 内容匹配
     */
    private String content;
    /**
     * 文章类型
     */
    private String type;
    /**
     * 开始时间戳
     */
    private Date startTime;
    /**
     * 结束时间戳
     */
    private Date endTime;

    public ContentCondition(String status) {
        this.status = status;
    }
}
